﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Ideal.API.LinqTextQueryBuilder
{
    public class LinqTextQueryRuntimeError
    {

        public LinqTextQueryRuntimeError( System.CodeDom.Compiler.CompilerError compilerError )
        {
            if ( compilerError == null ) throw new ArgumentNullException( "compilerError" );
            IsWarning = compilerError.IsWarning;
            Error = compilerError.ErrorText;
        }

        public bool IsWarning { get; set; }
        public string Error { get; set; }

    }
}
